<template>
  <BasicDrawer v-bind="$attrs" @register="registerBcsDrawer" destroyOnClose title="车系管理" width="750px" :showFooter="false">
    <BcsTable ref="bcsIndexDrawer" style="height: 500px" :brand-id="brandId"/>
  </BasicDrawer>
</template>
<script lang="ts" setup>
import {ref} from 'vue';

const brandId = ref('');
import {BasicDrawer, useDrawerInner} from '@apps/antd-admin/src/components/Drawer';
import BcsTable from './BcsTable.vue';

const [registerBcsDrawer] = useDrawerInner(async (data) => {
  brandId.value = data.record.brandId;
});
</script>
